package operation;

import data.Data;
import data.DataBase;

public class SampleList implements IOperation {
    @Override
    public void work(DataBase dataBase) {
        System.out.println("已采样人员名单！");

        int currentSize=dataBase.getContainSize();
        for (int i = 0; i < currentSize; i++) {
            Data data = dataBase.getData(i);
            if (data.isSampled()) {
                System.out.println(data);
            }
        }

    }

}
